package es.abredatos.client;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;

import es.abredatos.shared.Book;
import es.abredatos.shared.Library;

public interface BooksLocatorServiceAsync {

	void searchBook(String query, String type, boolean borrowed, double latitude, double longitude, AsyncCallback<List<Book>> callback) throws IllegalArgumentException;

	void locateLibrary(Book book, AsyncCallback<List<Library>> callback) throws IllegalArgumentException;

	void getBookDetails(String id, AsyncCallback<Book> callback) throws IllegalArgumentException;

}
